package app.beit.finportal.config;

import java.util.List;

import app.beit.finportal.bean.MenuBean;

public class MenuConfig {
	
	private List<MenuBean> listMenu;
	private List<MenuBean> listActiveMenu;
	private MenuBean menu;
	private static MenuConfig instance;
			
	public static MenuConfig getInstance() throws Exception {
	      if(instance == null) {
	         instance = new MenuConfig();
	      }
	      return instance;
	}

	public List<MenuBean> getListMenu() {
		return listMenu;
	}

	public void setListMenu(final List<MenuBean> listMenu) {
		this.listMenu = listMenu;
	}

	public MenuBean getMenu() {
		return menu;
	}

	public void setMenu(final MenuBean menu) {
		this.menu = menu;
	}
	
	public List<MenuBean> getListActiveMenu() {
		return listActiveMenu;
	}

	public void setListActiveMenu(final List<MenuBean> listActiveMenu) {
		this.listActiveMenu = listActiveMenu;
	}

	public void setNewInstance(){
		listMenu = null;
		listActiveMenu = null;
		menu = null;
	}
}
